package com.css.zfzx.sjcj.modules.qhsiteclassresult.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.sjcj.modules.qhsiteclassresult.repository.entity.QhSiteClassResultEntity;
import com.css.zfzx.sjcj.modules.qhsiteclassresult.viewobjects.QhSiteClassResultQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author andy
 * @date 2021-01-26
 */

public interface QhSiteClassResultService {

    public JSONObject queryQhSiteClassResults(QhSiteClassResultQueryParams queryParams, int curPage, int pageSize);

    public JSONObject queryQhSiteClassResultsByFileName(QhSiteClassResultQueryParams queryParams, int curPage, int pageSize, String sort, String order);

    public QhSiteClassResultEntity getQhSiteClassResult(String id);

    public QhSiteClassResultEntity saveQhSiteClassResult(QhSiteClassResultEntity qhSiteClassResult);

    public QhSiteClassResultEntity updateQhSiteClassResult(QhSiteClassResultEntity qhSiteClassResult);

    public void deleteQhSiteClassResults(List<String> ids);

    public JSONObject getQhSiteClassResults(QhSiteClassResultQueryParams queryParams);

    public void saveOrUpdate(QhSiteClassResultEntity scrEntity);

    public String judgeFileParams(String[] datas);

    public void deleteQhSiteClassResultsByFileName(List<String> fileNames);

    public JSONObject searchQhSiteClassResults(QhSiteClassResultQueryParams queryParams);

    //校验
    public String checkSHPFiles(String filePath, String province, String city, String area);

    //保存
    public String newImportShapeFile(String filePath, String province, String city, String area, String createUser,String codeType,int dataLength);
}
